<template>
    <!-- 搜素栏 -->
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item label="医生名称">
            <el-input v-model="formInline.name" placeholder="请输入查询名称" />
        </el-form-item>
        <el-form-item label="医生科室">
            <el-input v-model="formInline.department" placeholder="请输入科室" />
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onSubmit">查询</el-button>
        </el-form-item>
    </el-form>
</template>

<script setup lang="ts">

import { reactive } from 'vue'

const formInline = reactive({
    name: '',
    department: ''
})

const emits = defineEmits(['change'])

const onSubmit = () => {
    console.log('submit!',formInline)
}
</script>

<style scoped  lang="scss">

</style>